<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<link th:href="@{/statics/css/index.css}" type="text/css" rel="stylesheet">
<script th:src="@{/statics/未压缩版.js}" type="text/javascript"></script>
<script th:src="@{/statics/js/addUser.js}" type="text/javascript"></script>


<link th:href="@{/statics/layui-v2.7.6/layui/css/layui.css}" type="text/css" rel="stylesheet">
<script th:src="@{/statics/layui-v2.7.6/layui/layui.js}" type="text/javascript"></script>
<head>
    <meta charset="UTF-8">
    <title>Title</title>

</head>
<body>
<form th:action="@{/user/add}" method="post" class="add" enctype="multipart/form-data">

    <div>
        用户编码：<input type="text" name="userCode" id="userCode"><span id="tishi"></span>
    </div>
    <div>
        用户名：<input type="text" name="userName">
    </div>
    <div>
        密码：<input type="password" name="userPassword">
    </div>
    <div>
        用户性别： <select name="gender">
        <option  value="1">男</option>
        <option  value="2">女</option>
    </select>
    </div>
    <div>
        生日：<input type="text" name="birthday" id="birthday">
    </div>
    <div>
        用户头像：<input type="file" name="files" >
    </div>
    <div>
        用户证件照：<input type="file" name="files" >
    </div>
    <div>
        <input type="submit" value="保存">
        <input type="button" id="back" value="返回">
    </div>
</form>

<script>
    layui.use('laydate', function(){
        var laydate = layui.laydate;

        //执行一个laydate实例
        laydate.render({
            elem: '#birthday' //指定元素
        });
    });
</script>
</body>
</html>